package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.bbzn.device.client.dao.history.TemperatureHisMapper;
import com.bbzn.device.client.dataobject.TemperatureHis;
import com.bbzn.device.client.service.TemperatureHisService;
@Service
public class TemperatureHisServiceImpl implements TemperatureHisService{

    @Resource
    private TemperatureHisMapper temperatureHisMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return temperatureHisMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TemperatureHis record) {
        return temperatureHisMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(TemperatureHis record) {
        return temperatureHisMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(TemperatureHis record) {
        return temperatureHisMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(TemperatureHis record) {
        return temperatureHisMapper.insertSelective(record);
    }

    @Override
    public TemperatureHis selectByPrimaryKey(Long id) {
        return temperatureHisMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TemperatureHis record) {
        return temperatureHisMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TemperatureHis record) {
        return temperatureHisMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<TemperatureHis> findByAll(TemperatureHis temperatureHis) {
        return temperatureHisMapper.findByAll(temperatureHis);
    }

    @Override
    public int deleteByImei(String imei) {
        return temperatureHisMapper.deleteByImei(imei);
    }

    @Override
    public int updateBatch(List<TemperatureHis> list) {
        return temperatureHisMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<TemperatureHis> list) {
        return temperatureHisMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<TemperatureHis> list) {
        return temperatureHisMapper.batchInsert(list);
    }

}
